package com.whf15.o2o.service;

import org.springframework.web.multipart.commons.CommonsMultipartFile;

import com.whf15.o2o.dto.WechatAuthExecution;
import com.whf15.o2o.entity.WechatAuth;
import com.whf15.o2o.exceptions.WechatAythOperationException;


public interface WechatAuthService {

	/**
	 * 
	 * @param openId
	 * @return
	 */
	WechatAuth getWechatAuthByOpenId(String openId);

	/**
	 * 
	 * @param wechatAuth
	 * @param profileImg
	 * @return
	 * @throws RuntimeException
	 */
	WechatAuthExecution register(WechatAuth wechatAuth,
			CommonsMultipartFile profileImg) throws RuntimeException;

	/**
	* 方法描述：   
	* 创建人：whfo   
	* 创建时间：2021年8月25日 上午10:50:49 
	* @param wechatAuth
	* @return
	* @throws WechatAythOperationException
	*/
	WechatAuthExecution register(WechatAuth wechatAuth) throws WechatAythOperationException;

}
